using System;
using System.Runtime.Serialization;
using SKBKontur.Logging.Model;

namespace SKBKontur.Cassandra.Proxy.Management
{
    [DataContract]
    public class ClusterStatistics: LogEvent
    {
        [DataMember]
        private readonly FactoryStatistics[] factoryStatistics;

        [DataMember]
        private readonly OperationalStatistics operationalStatistics;

        public ClusterStatistics(FactoryStatistics[] factoryStatistics, OperationalStatistics operationalStatistics)
        {
            this.factoryStatistics = factoryStatistics;
            this.operationalStatistics = operationalStatistics;
            EventLevel = LogEventLevel.Info;
            Message = "Statistics for cluster";
            TimeStamp = DateTime.Now;
        }
    }
}